package com.sch.hospital.domain;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 医生信息对象 doctor
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Doctor
{
    /** 医生ID，自增主键 */
    private Long id;

    /** 医生工号 */
    private String docId;

    /** 医生姓名 */
    private String docName;

    /** 性别:0男,1女 */
    private Long sex;

    /** 民族 */
    private String nation;

    /** 工作年份 */
    private Long workYear;

    /** 政治面貌 */
    private String politicstatus;

    /** 医生职称 */
    private String docTitle;

    /** 学历 */
    private String education;

    /** 医生简介 */
    private String introduction;

    /** 电话号码 */
    private String telephone;

    /** 一级部门ID */
    private Long departId1;

    /** 二级部门ID */
    private Long departId2;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthdate;

    /** 登录用户名 */
    private String userName;

    /** 登录密码 */
    private String password;

    /** 医生照片路径 */
    private String img;

    /** 是否推荐:0不推荐,1推荐 */
    private Long recommend;

    /** 专长 */
    private String specialty;

    /** 状态:0停用,1启用 */
    private Long status;

    /** 头像路径 */
    private String avatar;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Doctor() {
    }

    public Doctor(Long id, String docId, String docName, Long sex, String nation, Long workYear, String politicstatus, String docTitle, String education, String introduction, String telephone, Long departId1, Long departId2, Date birthdate, String userName, String password, String img, Long recommend, String specialty, Long status, String avatar, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.docId = docId;
        this.docName = docName;
        this.sex = sex;
        this.nation = nation;
        this.workYear = workYear;
        this.politicstatus = politicstatus;
        this.docTitle = docTitle;
        this.education = education;
        this.introduction = introduction;
        this.telephone = telephone;
        this.departId1 = departId1;
        this.departId2 = departId2;
        this.birthdate = birthdate;
        this.userName = userName;
        this.password = password;
        this.img = img;
        this.recommend = recommend;
        this.specialty = specialty;
        this.status = status;
        this.avatar = avatar;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return docId
     */
    public String getDocId() {
        return docId;
    }

    /**
     * 设置
     * @param docId
     */
    public void setDocId(String docId) {
        this.docId = docId;
    }

    /**
     * 获取
     * @return docName
     */
    public String getDocName() {
        return docName;
    }

    /**
     * 设置
     * @param docName
     */
    public void setDocName(String docName) {
        this.docName = docName;
    }

    /**
     * 获取
     * @return sex
     */
    public Long getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(Long sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return nation
     */
    public String getNation() {
        return nation;
    }

    /**
     * 设置
     * @param nation
     */
    public void setNation(String nation) {
        this.nation = nation;
    }

    /**
     * 获取
     * @return workYear
     */
    public Long getWorkYear() {
        return workYear;
    }

    /**
     * 设置
     * @param workYear
     */
    public void setWorkYear(Long workYear) {
        this.workYear = workYear;
    }

    /**
     * 获取
     * @return politicstatus
     */
    public String getPoliticstatus() {
        return politicstatus;
    }

    /**
     * 设置
     * @param politicstatus
     */
    public void setPoliticstatus(String politicstatus) {
        this.politicstatus = politicstatus;
    }

    /**
     * 获取
     * @return docTitle
     */
    public String getDocTitle() {
        return docTitle;
    }

    /**
     * 设置
     * @param docTitle
     */
    public void setDocTitle(String docTitle) {
        this.docTitle = docTitle;
    }

    /**
     * 获取
     * @return education
     */
    public String getEducation() {
        return education;
    }

    /**
     * 设置
     * @param education
     */
    public void setEducation(String education) {
        this.education = education;
    }

    /**
     * 获取
     * @return introduction
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 设置
     * @param introduction
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return departId1
     */
    public Long getDepartId1() {
        return departId1;
    }

    /**
     * 设置
     * @param departId1
     */
    public void setDepartId1(Long departId1) {
        this.departId1 = departId1;
    }

    /**
     * 获取
     * @return departId2
     */
    public Long getDepartId2() {
        return departId2;
    }

    /**
     * 设置
     * @param departId2
     */
    public void setDepartId2(Long departId2) {
        this.departId2 = departId2;
    }

    /**
     * 获取
     * @return birthdate
     */
    public Date getBirthdate() {
        return birthdate;
    }

    /**
     * 设置
     * @param birthdate
     */
    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return img
     */
    public String getImg() {
        return img;
    }

    /**
     * 设置
     * @param img
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 获取
     * @return recommend
     */
    public Long getRecommend() {
        return recommend;
    }

    /**
     * 设置
     * @param recommend
     */
    public void setRecommend(Long recommend) {
        this.recommend = recommend;
    }

    /**
     * 获取
     * @return specialty
     */
    public String getSpecialty() {
        return specialty;
    }

    /**
     * 设置
     * @param specialty
     */
    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return avatar
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置
     * @param avatar
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Doctor{id = " + id + ", docId = " + docId + ", docName = " + docName + ", sex = " + sex + ", nation = " + nation + ", workYear = " + workYear + ", politicstatus = " + politicstatus + ", docTitle = " + docTitle + ", education = " + education + ", introduction = " + introduction + ", telephone = " + telephone + ", departId1 = " + departId1 + ", departId2 = " + departId2 + ", birthdate = " + birthdate + ", userName = " + userName + ", img = " + img + ", recommend = " + recommend + ", specialty = " + specialty + ", status = " + status + ", avatar = " + avatar + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
